import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from '../components/App'
import Home from '../components/Home'
import About from '../components/About'
import Repos from '../components/Repos'
import Repo from '../components/Repo'
module.exports = (
    <Route path="/" component={App}>
        <IndexRoute component={Home}/>     //使用了默认路由，渲染Home组件
        <Route path="about" component={About}/>
        <Route path="repos" component={Repos}>
            <Route path="/repo" component={Repo}/>
        </Route>
    </Route>
)